package com.woniu.cms.auth.core.service;

import com.woniu.cms.auth.core.entity.RbacPerm;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.cms.auth.core.vo.CUPermVo;
import com.woniu.cms.auth.core.vo.PermVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lilili
 * @since 2022-09-16
 */
public interface IRbacPermService extends IService<RbacPerm> {

    List<PermVo> all();

    @Transactional
    List<PermVo> all1();

    @Transactional
    List<PermVo> all2();

    boolean addPerm(CUPermVo permVo);

    boolean updatePerm(CUPermVo permVo);

    boolean doAllot(Map<String, Object> map);

    boolean doUnAllot(Map<String, Object> map);

    List<PermVo> display(Integer roleId);
}
